<script>
	export default {
		onLaunch: function() {
			//登录
			 
			const role = uni.getStorageSync('role');//登录角色   enterprise / teacher  
			
			console.log('App Launch', role)
			if (role == ('student')) {
				console.log("student")
				uni.setTabBarItem({
					index: 1,
					"pagePath": "pages/status/status",
					"iconPath": "static/img/status.png",
					"selectedIconPath": "static/img/select_status.png",
					"text": "状态"
				})
			} else {console.log("!student")
				uni.setTabBarItem({
					index: 1,
					"pagePath": "pages/status02/status02",
					"iconPath": "static/img/student.png",
					"selectedIconPath": "static/img/select_student.png",
					"text": "学生",
				})
				
			}
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},

	}
</script>


<style lang="scss">
	//首页的轮播图样式
	@import './cool/ui/assets/css/index.scss';
	
</style>
<style>
	/* @import './common/qiun.css'; */
</style>